package cc.bookcloud.springboot3.auth.config;

import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

public class BCryptTest {
    public static void main(String[] args) {
        String rawPassword = "123456"; // 原始密码
        BCryptPasswordEncoder encoder = new BCryptPasswordEncoder();
        String encodedPassword = encoder.encode(rawPassword); // 生成BCrypt加密串
        System.out.println("BCrypt密码：" + encodedPassword);
    }

}
